# 指定Cmake的最底版本需求要求
cmake_minimum_required(VERSION 3.22)

set(CMAKE_PROJECT_NAME main)

# 指定项目名称和变成语言
project(${CMAKE_PROJECT_NAME} C)

# 通过CMake内置宏指定C的语言标准版本使用C11
set(CMAKE_C_STANDARD 11)

# 添加可执行文件
add_executable(${CMAKE_PROJECT_NAME})

# 添加编译源文件
target_sources(${CMAKE_PROJECT_NAME} PRIVATE
	src/main.c	
	src/function.c
)


# 添加头文件搜索目录
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE
	include
)

